package logic.items;

import logic.nodes.nodeSettings.upgrades.UpgradableSettings;

public class ItemFactory {
	
	public static ItemProperties createItemProps(UpgradableSettings settings) {
		String t = settings.getValueOf("item_type");
		ItemType type = ItemType.valueOf(t);
		
		switch (type) {
			case Energy: return new EnergyCellProperties(settings, type);
			case Repair: return new RepairItemProperties(settings, type);
			case Shields: return new ShieldItemProperties(settings, type);
		}
		
		return null;
	}
}